package br.ufrn.opencopi.graph;

import java.util.List;

import br.cnpq.webflowah.beans.ServicoSemantico;

/**
 * DependentVertex is the vertex that is dependent for one or more others vertexs.
 * In case of adaptation that implies in substituiton of a vertex that has a dependent vertex,
 * this dependent vertex need to be replaced too.
 *
 * @author fred
 *
 */
public class DependentVertex extends ServiceVertex {

	private List<ServiceVertex> dependencyList;

	public DependentVertex(int id, String uri, ServicoSemantico servico, boolean isRollbackable, boolean isCompActionable, List<ServiceVertex> dependencyList) {
		super(id, uri, servico, isRollbackable, isCompActionable);
		this.dependencyList = dependencyList;
	}

	public DependentVertex(int id, String uri, ServicoSemantico servico, List<ServiceVertex> dependencyList) {
		super(id,servico, uri);
		this.dependencyList = dependencyList;
	}

	public List<ServiceVertex> getDependencyList() {
		return dependencyList;
	}

}
